package me.zhengjie.minbearwcs.entity.DTO.wms.inbound;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import me.zhengjie.minbearwcs.entity.DTO.wms.login.MinBearLoginResultDTOContext;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
public class MinBearInboundRequestDTO {
    @JsonProperty("ApiType")
    private String ApiType = "InStorageController";

    @JsonProperty("Parameters")
    private List<Map<String, String>> Parameters = new ArrayList<>();

    @JsonProperty("Method")
    private String Method = "InStorageGet";

    @JsonProperty("Context")
    private MinBearLoginResultDTOContext Context = new MinBearLoginResultDTOContext();

    public MinBearInboundRequestDTO(String palletCode, String ticket) {
        HashMap<String, String> map1 = new HashMap<>();
        map1.put("Value", palletCode);
        Parameters.add(map1);

        Context.setTicket(ticket);
        Context.setInvOrgId(128);
    }


}
